Zync SDK
Toggle table of contents
2.1.10
commonMain
Platform filter
commonMain
Switch theme
Search in API
Zync SDK
Zync SDK
/
zync.internal.core.util
Package-level
declarations
Functions
Functions
with
Api
Timeout
Link copied to clipboard
suspend
fun
<
T
>
withApiTimeout
(
timeMillis
:
Long
,
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
T
with
Soft
Timeout
Link copied to clipboard
suspend
fun
<
T
>
withSoftTimeout
(
scope
:
CoroutineScope
,
timeoutMs
:
Long
,
onTimeout
:
suspend
(
)
->
T
,
onLateSuccess
:
suspend
(
T
)
->
Unit
=
{}
,
onFailure
:
suspend
(
Throwable
)
->
T
,
block
:
suspend
(
)
->
T
)
:
T
Executes a suspending operation with a soft timeout that doesn't cancel the underlying work.